﻿<UserControl x:Class="Remember.WPF.Views.LoginItem"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="100" d:DesignWidth="500" Width="500" Height="100">
    
    <Grid>
        <Border x:Name="borderLogin" Margin="10,10,10,0" CornerRadius="12" BorderThickness="2" Background="White" BorderBrush="Silver" MouseEnter="borderLogin_MouseEnter" MouseLeave="borderLogin_MouseLeave" MouseLeftButtonUp="borderLogin_MouseLeftButtonUp" VerticalAlignment="Top">
            <Grid Height="56" Cursor="Hand">
                <Button Width="18" Height="20" HorizontalAlignment="Right" Content="Button1" 
                Template="{DynamicResource ButtonControlTemplateStart1}" Cursor="Hand" 
                Margin="0,16,18,0" VerticalAlignment="Top" Click="Button_Click" IsDefault="True" FontFamily="Arial">
                </Button>

                <TextBlock Height="32" HorizontalAlignment="Left" Margin="0,10,0,0" Name="uiLoginName" Text="Guest" VerticalAlignment="Top" Width="360" FontSize="20" Padding="20,3,0,0" FontStretch="Normal" >                    
                </TextBlock>
                <TextBlock Height="32" HorizontalAlignment="Right" Margin="0,11,42,0" Name="uiLoginStart" Text="Start" VerticalAlignment="Top" FontSize="20" Width="46" Padding="0,5,0,0" FontFamily="Arial">
                </TextBlock>
            </Grid>
        </Border>
        <Button Width="16" Height="16" HorizontalAlignment="Left" Content="Button1" Template="{DynamicResource ButtonControlTemplate2}" Cursor="Hand" Margin="30,0,0,6" VerticalAlignment="Bottom" Click="ButtonRemove_Click">
            <Button.Resources>
                <ControlTemplate x:Key="ButtonControlTemplate2" TargetType="{x:Type Button}">
                    <Grid>
                        <Path x:Name="ButtonPath" Stroke="Green" StrokeThickness="3" Data="M 1,1 L 10,10 M 10,1 L 1,10" />
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="ButtonPath" Property="Stroke" Value="LightGreen"></Setter>
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter TargetName="ButtonPath" Property="Stroke" Value="Gray" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Button.Resources>
        </Button>
        <TextBlock Height="23" HorizontalAlignment="Left" Margin="48,0,0,2" Name="textBlock1" Text="Remove this user" VerticalAlignment="Bottom" Width="124" FontSize="11" />
    </Grid>

</UserControl>
